<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="NeuralNetwork.html">
<link rel="next" href="Adaline.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="NeuralNetwork" rel="Chapter" href="NeuralNetwork.html">
<link title="NeuralNetworkIo" rel="Chapter" href="NeuralNetworkIo.html">
<link title="Adaline" rel="Chapter" href="Adaline.html">
<link title="MlPerceptron" rel="Chapter" href="MlPerceptron.html">
<link title="SigmoidMlPerceptron" rel="Chapter" href="SigmoidMlPerceptron.html"><title>NeuralNetworkIo</title>
</head>
<body>
<div class="navbar"><a href="NeuralNetwork.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="Adaline.html">Next</a>
</div>
<center><h1>Module <a href="type_NeuralNetworkIo.html">NeuralNetworkIo</a></h1></center>
<br>
<pre><span class="keyword">module</span> NeuralNetworkIo: <code class="code">sig</code> <a href="NeuralNetworkIo.html">..</a> <code class="code">end</code></pre>Useful fonctions to read perceptrons from a file<br>
<hr width="100%">
<pre><span class="keyword">exception</span> <a name="EXCEPTIONWrong_network_type"></a>Wrong_network_type</pre>
<pre><span class="keyword">exception</span> <a name="EXCEPTIONWrong_function"></a>Wrong_function</pre>
<br><code><span class="keyword">type</span> <a name="TYPEnetwork_type"></a><code class="type"></code>network_type = </code><table class="typetable">
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">MlPerceptron</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">SigmoidMlPerceptron</span></code></td>

</tr>
<tr>
<td align="left" valign="top" >
<code><span class="keyword">|</span></code></td>
<td align="left" valign="top" >
<code><span class="constructor">Adaline</span></code></td>

</tr></table>


<pre><span class="keyword">val</span> <a name="VALread_network_type"></a>read_network_type : <code class="type">string -> <a href="NeuralNetworkIo.html#TYPEnetwork_type">network_type</a></code></pre><pre><span class="keyword">val</span> <a name="VALread_activation"></a>read_activation : <code class="type">string -> <a href="NeuralNetwork.html#TYPEactivation">NeuralNetwork.activation</a></code></pre><pre><span class="keyword">val</span> <a name="VALsplit_elem"></a>split_elem : <code class="type">string -> string array</code></pre><pre><span class="keyword">val</span> <a name="VALsplit_arrays"></a>split_arrays : <code class="type">string -> string array</code></pre><pre><span class="keyword">val</span> <a name="VALweights_of_string"></a>weights_of_string : <code class="type">string -> float Matrix.matrix</code></pre><pre><span class="keyword">val</span> <a name="VALbias_of_string"></a>bias_of_string : <code class="type">string -> float array</code></pre><pre><span class="keyword">val</span> <a name="VALopenFile"></a>openFile : <code class="type">string -><br>       [> `Adaline of <a href="Adaline.adaline.html">Adaline.adaline</a><br>        | `MlPerceptron of <a href="MlPerceptron.mlPerceptron.html">MlPerceptron.mlPerceptron</a><br>        | `SigmoidMlPerceptron of <a href="SigmoidMlPerceptron.sigmoidMlPerceptron.html">SigmoidMlPerceptron.sigmoidMlPerceptron</a> ]</code></pre><div class="info">
Reads a perceptron file of unknown network type<br>
</div>
<pre><span class="keyword">val</span> <a name="VALopenSigmoidMlPerceptron"></a>openSigmoidMlPerceptron : <code class="type">string -> <a href="SigmoidMlPerceptron.sigmoidMlPerceptron.html">SigmoidMlPerceptron.sigmoidMlPerceptron</a></code></pre><div class="info">
Reads a sigmoid multi-layer perceptron<br>
<b>Raises</b> <code>Wrong_network_type</code> if the file is not of this type<br>
</div>
<pre><span class="keyword">val</span> <a name="VALopenMlPerceptron"></a>openMlPerceptron : <code class="type">string -> <a href="MlPerceptron.mlPerceptron.html">MlPerceptron.mlPerceptron</a></code></pre><div class="info">
Reads a multi-layer perceptron<br>
<b>Raises</b> <code>Wrong_network_type</code> if the file is not of this type<br>
</div>
<pre><span class="keyword">val</span> <a name="VALopenAdaline"></a>openAdaline : <code class="type">string -> <a href="Adaline.adaline.html">Adaline.adaline</a></code></pre><div class="info">
Reads an adaline network<br>
<b>Raises</b> <code>Wrong_network_type</code> if the file is not of this type<br>
</div>
</body></html>